package com.yckj.day10;

import java.io.IOException;

/**
 * TODO Runtime类
 *
 * @author shengyuee
 * @version 1.0
 * 2025/7/29 14:53
 */
public class RuntimeDemo {
    public static void main(String[] args) throws IOException {
        Runtime r = Runtime.getRuntime();
        System.out.println("总内存：" + r.totalMemory());
        System.out.println("空闲内存：" + r.freeMemory());
        System.out.println("最大内存：" + r.maxMemory());
        r.gc();
        r.exec("notepad.exe");
    }
}
